export const imgError = {
  inserted: function(dom, binding) {
    if (!dom.src) dom.src = binding.value
    dom.onerror = function() {
      dom.src = binding.value
    }
  },
  componentUpdated(dom, options) {
    dom.src = dom.src || options.value
  }
}
